package com.ahm.controller;

import com.ahm.pojo.Order;
import com.ahm.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author anhaimeng
 * @title: OrderController
 * @projectName consule-demo
 * @description: TODO
 * @date 2021/10/1916:30
 */
/*功能描述
 * @author ahm
 */
@RestController
@RequestMapping("order")
public class OrderController {

    @Autowired
    private OrderService orderService;

    @RequestMapping("{id}")
    public Order selectOrderById(@PathVariable Integer id){
        Order order = orderService.selectOrderById(id);
        return order;
    }
}
